<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
	<?php $this->load->view('common/top', array('title' => 'SEWIKI - CHAPTERLIST')); ?>
	<body>
		<div id="container">
			<?php $this->load->view('common/header'); ?>
			<div id="content">
				<?php $this->load->view('common/menu'); ?>
				<div id="main">
					<div id="thread_list_title" class="title">
						讨论主题
					</div>
					<div id="thread_list" class="text">
						<table width="100%">
							<?php foreach($threads as $thread): ?>
								<?php $this->load->view('forum/threadItem', $thread) ?>
							<?php endforeach; ?>
						</table>
					</div>
					<div id="thread_form_title" class="subtitle">
						发表新的主题
					</div>
					<div id="thread_form" class="text_form">
						<?php $this->load->view('forum/createThreadForm'); ?>
					</div>
				</div>
			</div>
			<?php $this->load->view('common/footer'); ?>
		</div>
	</body>
</html>